><

Highlighting Syntax



As you enter and edit HTML code in Source view, the syntax highlighting feature works in the background, continuously monitoring your code and comparing it with the content and rules specified in Web Settings. When the syntax highlighting feature recognizes a tag, it highlights the start and end tags and tag attributes to indicate that the syntax is complete.

Syntax highlighting uses different colors to visually separate tags, attributes, and document content, making it easy for you to keep track of the HTML code.

To set syntax highlighting and text wrapping:

1 Click the Source tab () in the document window.

2 In the Source view toolbar, set the highlighting and text wrap options. For information on changing the color of text highlighting, see Setting Source preferences.

  • Turn Syntax Highlighting Off button () deactivates syntax highlighting, showing the HTML source code in the default text color.
  • Detailed Syntax Highlighting button () activates syntax highlighting.
  • Highlight Media & Links button () highlights images and media items only.
  • Highlight URLs button () highlights references to other pages and locations on the Web.
  • Highlight Server Side Code button highlights server-side code such as ASP.
  • Word Wrap button () toggles the wrapping of the source at the margin of the Source Editor window on and off.
  • Display Line Numbers button () shows the code line numbers.


  • Working in HTML > Editing HTML code in Source view > Highlighting Syntax